import { tableServiceInterface } from "@/common/interface/table.interface";
import { $AddProductCate, $getProductCateList, $productCateDelete, $productCateDetail, $productCateListTree, $productCateUpdate } from "@/apis/product/product";
import { addProductCateInterface, productCateListInterface, productCateUpdateInterface } from "@/apis/product/product.interface";

export default class ProductCateService implements tableServiceInterface {
  async getTable(e: productCateListInterface): Promise<any> {
    return $getProductCateList(e);
  }
  add(e: addProductCateInterface): Promise<any> {
    return $AddProductCate(e);
  }
  detail(id: number): Promise<any> {
    return $productCateDetail(id);
  }
  deleteMultiple(e: Array<string>): Promise<any> {
    return $productCateDelete(e);
  }
  edit(e: productCateUpdateInterface): Promise<any> {
    return $productCateUpdate(e);
  }
  listTree(): Promise<any> {
    return $productCateListTree();
  }
}